﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _111_对象池
{
    class Program
    {
        static void Main(string[] args)
        {
            BulletData data = new BulletData();
            BulletEntity bullet2;
            BulletEntity bullet = EntiyPool.ShowEntity<BulletEntity>(data);

            bullet.Destroy();
            bullet2 = EntiyPool.ShowEntity<BulletEntity>(data);

            Console.ReadKey();
        }
    }
}
